home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d2
/
stopwtch.arc
/
STOPWTCH.DOC
< prev
Wrap
Text File
|
1990-07-31
|
2KB
|
58 lines
StopWatch - Times Program Execution
Version 1.01: June 7, 1986
StopWatch is a program that can be used to time the execution
of other programs. It uses the BIOS timer which has a resolution
of ~55 milliseconds and should be accurate to at least .1
seconds.
USAGE:
There are two formats for the StopWatch command:
STOP <any command WITHOUT I/O redirection>
and
STOP <"any command with I/O redirection">
The angle brackets ('<' and '>') are not actually entered,
however, the quotes in form 2 must be entered.
EXAMPLES:
1) STOP DIR *.*
This StopWatch command would time the execution of the
PC/MS-DOS DIR command.
2) STOP "TRIM 0 <STOPWTCH.C >STOPWTCH.C"
This StopWatch command would time the execution of the
TRIM filter which uses I/O redirection.
3) STOP "TRIM 0 <STOPWTCH.C >STOPWTCH.C" >TIME
This StopWatch command is the same as that in 2) except
that the StopWatch output is redirected to the file TIME.
OUTPUT:
The output of StopWatch shows the date of execution (from the
system date), the command that was executed, the start time for
execution of the command (from the system time of day), the end
time of the execution, and the elapsed time (from the BIOS time).
The following is an example of the output of the StopWatch
command for an execution of DIR:
StopWatch - Version 1.01: June 6, 1986
Datalight C Compiler Version
Date: 06/07/86
Command: dir /w
Start time: 17:58:45
Stop time: 17:58:47
Elapsed time: 2.25 seconds